#include "widget.h"
#include "ui_widget.h"

#include <QFont>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QFont font;
    font.setFamily("宋体");
    font.setPixelSize(10);  // 像素大小
    font.setPointSize(10);  // 点数大小
    font.setWeight(5);
    font.setBold(true);
    font.setItalic(true);
    font.setUnderline(true);
    font.setStrikeOut(true);

    ui->label->setFont(font);
}

Widget::~Widget()
{
    delete ui;
}

